let app = getApp();
Component({
  data: {
    result: '',
  },
  methods: {
  // 获取会员卡须知
    _activeCard() {
      let that = this;
      app.util.request({
        url: 'wxapp/wechatCard/prerogative',
        cachetime: 0,
        success: function(res) {
          that.setData({
            result: res.data.result,
          });
        },
        fail: function(res) {
          console.log(res);
        },
      });
    },
  },

  attached() {
    this._activeCard();
  },
});